package com.polaris.live.adapter

import com.polaris.live.R
import com.polaris.live.common.adapter.BaseBindingAdapter
import com.polaris.live.common.adapter.VBViewHolder
import com.polaris.live.databinding.ItemBeansToDiamondsBinding
import com.polaris.live.resp.back_resp.RechargeCoinPurchasePriceListResp

/**
 * Beansd兑换diamonds的Adapter
 *
 * @author Created by 天晴 on 2024/11/15/015 17:13
 */
class RechargeBeansToDiamondsAdapter :
    BaseBindingAdapter<ItemBeansToDiamondsBinding, RechargeCoinPurchasePriceListResp>() {

    init {
        addChildClickViewIds(R.id.beans_ll)
    }

    override fun convert(
        holder: VBViewHolder<ItemBeansToDiamondsBinding>,
        item: RechargeCoinPurchasePriceListResp,
    ) {
        holder.vb.apply {
            diamondTv.text = "${item.diamonds}"
            beansTv.text = "${item.beans}"
        }
    }

}

